vpath %.h ../include
ROOT=../build
AR = ar
ARFLAGS = cr
RM = -rm -rf
INCLUDE_DIR = ../include
CFLAGS = -I $(INCLUDE_DIR) -Wall -g 
LIB = $(ROOT)/libcou.a
CC = gcc
objects := $(patsubst %.c,%.o,$(wildcard *.c))  
$(objects) : cou.c cou.h cou_pub.h
	gcc -c $(CFLAGS) $< -o $@  

all:$(LIB)
$(LIB):$(objects)
	$(AR) $(ARFLAGS) $@ $(objects)
clean:
	$(RM) *.o *.a
.PHONY: all clean
